package Model;


import java.util.Collection;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author sio
 */
public class Dep implements Comparable<Dep>{
    private String num;
    private Collection<Medecin> lesMeds;
    
    public Dep(String num, Collection<Medecin> lesMeds){
        this.num = num;
        this.lesMeds = lesMeds;
    }
    
    public String getNum(){
        return this.num;
    }
    
    public Collection<Medecin> getLesMeds(){
        return this.lesMeds;
    }
    
    public int compareTo(Dep d){
        return num.compareTo(d.num);
    }
}
